﻿using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEngine;

public class MyPanel : MonoBehaviour {

	// Use this for initialization
	void Start ()
	{
		Tweener tweener = transform.DOLocalMoveX(0, 2);
		tweener.SetEase(Ease.OutBounce);	//动画曲线
		tweener.OnComplete(OnTweenComplete);//动画结束事件
	}
	
	// Update is called once per frame
	void Update () {
		
	}

	void OnTweenComplete()
	{
		Debug.Log("OnTweenComplete");
	}
}
